package com.prueba.client.interfaz.grillas;


import com.prueba.client.datosYlogica.GestorAcciones;
import com.prueba.client.datosYlogica.GestorStakeholders;
import com.smartgwt.client.types.Overflow;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.grid.ListGridField;

public class ListGridStakeholders extends ListGrid{
	public static ListGridStakeholders getInstance(){
		if (singleton==null){
			singleton=new ListGridStakeholders();
		}
		return singleton;
	}
	static private ListGridStakeholders singleton=null;
	
	private ListGridStakeholders(){
	    super();
		 //Parametros de la grilla     
	     //this.setCanEdit(true);              
	     //this.setCanDragResize(true);
	     this.setWidth100();  
	     this.setHeight100(); 
	     this.setOverflow(Overflow.AUTO);
	     
	    //Campos de la grilla
		    
	       ListGridField stakeholder = new ListGridField("nombreStakeholder", "Stakeholder");  
	       ListGridField prioridad = new ListGridField("prioridad", "Prioridad");
	       ListGridField cantidad = new ListGridField("cantidad", "Cantidad");
	       ListGridField roles = new ListGridField("roles", "Roles");
	       ListGridField satisfaccion = new ListGridField("satisfaccion", "Satisfaccion");
	       this.setFields(stakeholder,prioridad,cantidad,roles,satisfaccion);  
	       
		//this.setDataSource(GestorStakeholders.getInstance());
	    GestorStakeholders.getInstance().setListGrid(this);
	    this.setAutoFetchData(true); 

	}

}